﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DIS_WEB_Client.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent2" runat="server">
<table width="560" border="0" cellspacing="0" cellpadding="0">
    	<tbody><tr><td valign="top">
        <div style="border-bottom:2px solid #d9d9d9">
            <a href="<%= Url.Action("Index", "Home") %>"><b>HOME</b></a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;<a href="<%= Url.Action("Products", "Home", new { idCate = Model.ItemModel.GetModel.LstObjModel[0].IDCategory }) %>"><b><%= Model.ItemModel.GetModel.LstObjModel[0].Category.Name %></b></a>
        </div>
        <div class="ProductPage_ProductName" style="font-size:20px; margin:20px 0px 20px 0px; font-weight:bold"><%= Model.ItemModel.GetModel.LstObjModel[0].Name %></div>

            <div>
                <div style="width:560px">
                    <div class="ProductPage_ProdImage" style="width:202px; float:left; margin-right:20px">
                            <img src="<%= Url.Action("ShowItemImage", "Image", new { idItem = Model.ItemModel.GetModel.LstObjModel[0].ID })%>" width="200" height="200" border="0" alt="Tabu  Spray Cologne 100mL" title="Tabu  Spray Cologne 100mL" style="border:1px solid #d9d9d9"/>        
                    </div>
                    <div class="ProductPage_ProdInfoAndButton" style="width:300px; float:left">
                        <div style="clear:both">
                            <div>Product Code: <b><%= Model.ItemModel.GetModel.LstObjModel[0].ID %></b></div>
                            <div style="background-color:#d9d9d9; height:2px; font-size:2px; width:335px">
                                &nbsp;
                            </div>
                            
                            <%
                                var protionalPrice = Math.Round(CommonHelpers.CalcPromotionPrice(Model.ItemModel.GetModel.LstObjModel[0]), 2);
                                var originalPrice = Model.ItemModel.GetModel.LstObjModel[0].Price;
                             %>
                            <div id="dynamic_section">
                            <div>
                                <div style="background-color: #fbfbfb; width:335px; height:60px">     
                                    <div class="ProductPage_NormalPrice" style="float:left; line-height:60px; height:60px; vertical-align:middle; font-weight:bold; font-size:30px; padding:0px 15px">$<%= protionalPrice %></div>
                                    <div class="ProductPage_NormalRRP" style="float:left; height:60px; vertical-align:middle; padding:2px 15px">
                                                
                                            <div style="height:30px; line-height:30px; vertical-align:bottom">SRP $<%= originalPrice %></div>
                                            <div>Save $<%= originalPrice - protionalPrice %></div>
                                                
                                    </div>              
                                </div>
                                <div style="padding:10px; width: 335px">
                                    Normally dispatched within 24 hours
                                </div>
                            </div>
                            <div style="background-color:#d9d9d9; height:2px; font-size:2px; width:335px">
                                &nbsp;
                            </div>
                            <div style="text-align:right; width:335px; padding: 15px 0px">
                                <div style="float:left">
                                    <div style="clear:both">
                                    </div>
                                </div>
                                
                                <div id="ProductBuyButton" style="float:right; padding-left:10px">
                                    <a id="ProductBuyButtonLink" href="<%= Url.Action("AddToCart", "Home", new { id = Model.ItemModel.GetModel.LstObjModel[0].ID, idcate = Model.ItemModel.GetModel.LstObjModel[0].IDCategory })%>">
                                        <img id="ProductBuyButtonImage" src="../../Content/Images/Button_AddToBag.gif" width="90" height="21" border="0" alt="add to bag">
                                    </a>
                                </div>
                                        
                            </div>
                            </div> <!-- dynamic_section end -->
                        </div>
                    </div>
                </div>
            </div> 
        
    <!-- MAIN END -->
    
	</td></tr>
	</tbody>
</table>
</asp:Content>
